package cn.xbtop.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import cn.xbtop.mapper.TMessageMapper;
import cn.xbtop.bean.TMessage;
import cn.xbtop.service.TMessageService;
/**
 * @author  Mxb
 * @date  2020/6/6 18:35
 * @version 1.0
 */
@Service
public class TMessageServiceImpl implements TMessageService{

    @Resource
    private TMessageMapper tMessageMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tMessageMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TMessage record) {
        return tMessageMapper.insert(record);
    }

    @Override
    public TMessage selectByPrimaryKey(Integer id) {
        return tMessageMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKey(TMessage record) {
        return tMessageMapper.updateByPrimaryKey(record);
    }

}
